package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.entity.User;
import com.example.demo.service.IJobAndTriggerService;

@RestController
@RequestMapping( value = "/user")
public class UserController {
	
	@Autowired
	private IJobAndTriggerService iJobAndTriggerService;
	
	@RequestMapping(value = "getUserById/{id}")
	public User getUserById(@PathVariable int id) {
		return iJobAndTriggerService.getUserById(id);
	}
}
